//设置时间跳转至url
function setTimeOutRedirect( url, time ){
    setTimeout(function(){//两秒后跳转
        window.location.href = url;
    },1000);
}

//显示弹出信息
function notify( type, messgae ){
    var icon;
    var tips;
    var showMessage = messgae;
    switch( type ){
        case 0:
            icon = 'fa-check-circle';
            tips = 'success';
            break;
        default:
            icon = 'fa-warning';
            tips = 'danger';
            break;
    }
    $.notify({
        // options
        icon: 'fa '+icon,
        message: showMessage
    },{
        type: tips
    });
}

